<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>电商平台管理系统</title>
		<link rel="stylesheet" href="css/main.css" />
	</head>
	<body>
		<div class="main_lay">
			<div class="main_top">
				<div>logo</div>
				<div>SHOPPING</div>
				<div></div>
				<div>
					<div>退出</div>
					<div>
						<div>欢迎xxx</div>
						<div><span name="time"></span></div>
					</div>
				</div>
			</div>
			<div class="main_middle">
				<div class="nav">
					<div><a href="userlist.html" target="content" >用户管理</a></div>
					<div><a href="typelist.html" target="content" >分类管理</a></div>
                    <div><a href="goodslist.html" target="content" >商品管理</a></div>
					<div><a href="#" >订单管理</a></div>
                    <div><a href="#" >地址管理</a></div>
                    <div><a href="#" >密码修改</a></div>
					
				</div>
				<div>
					<iframe name="content" src="welcome.html" border="0" frameborder="0" style="width: 100%;height: 100%;"></iframe>
					
				</div>
			</div>
			<div class="main_foot"></div>
		</div>
		
		
		<script>
		/*时间设置*/
		   function fun(){
				var date=new Date();
				var year=date.getFullYear();
				var month=strfun((date.getMonth()+1).toString());
				var day=strfun(date.getDate().toString());
				var hour=strfun(date.getHours().toString());
				var min=strfun(date.getMinutes().toString());
				var second=strfun(date.getSeconds().toString());
				document.getElementsByName("time")[0].innerText=year+"-"+month+"-"+day+" "+hour+":"+min+":"+second;
			}
		   fun();
		   setInterval("fun()",500);
		   
		   function strfun(str){
		   	 if(str.length==1){
		   	 	return "0"+str;
		   	 }
		   	 return str;
		   }
		</script>
		
	</body>	
</html>
